package com.ojoin.trade.supplyloan_core.utils.catchdata;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import com.ojoin.trade.common.utils.NamedThreadFactory;
 
public class SLFixedThreadPool {
	 
	/**
	 * 
	 *  WebDriver  抓取数据线程池    此参数需要
	 */ 
	private static NamedThreadFactory spriderFactory = new NamedThreadFactory("eb-spider-webdriver", true);
	public final static ExecutorService WebDriverpool = Executors.newFixedThreadPool(5,spriderFactory);
	
	/**
	 *  WebClient  抓取数据线程池
	 */
	private static NamedThreadFactory topicFactory = new NamedThreadFactory("eb-spider-topic", true);
	public  final static ExecutorService elsePool = Executors.newSingleThreadExecutor(topicFactory); 
	 
} 
